package org.van.blog.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.van.blog.dto.cond.ContentCond;
import org.van.blog.model.ContentDomain;
import org.van.blog.model.RelationShipDomain;

@Mapper
public interface ContentDao {
    List<ContentDomain> getArticleByCond(ContentCond contentCond);

    List<ContentDomain> getArticleByCategory(@Param("category") String category);

    List<ContentDomain> getArticleByTags(List<RelationShipDomain> cid);

    ContentDomain getArticleById(Integer cid);

    Long getArticleCount();

    void updateArticleById(ContentDomain contentDomain);

    void deleteArticleById(Integer cid);

    void addArticle(ContentDomain contentDomain);
}
